package com.android.accessibility.function;

import android.accessibilityservice.AccessibilityService;
import android.util.AndroidRuntimeException;
import android.view.accessibility.AccessibilityEvent;

import com.android.accessibility.utils.Log;

public class Accessibility {

    private AccessibilityService mService;
    protected CharSequence mClassName = null;

    public Accessibility(AccessibilityService service) {
        Log.d(Log.TAG, "Accessibility : " + this.getClass().getSimpleName());
        mService = service;
        if (mService == null) {
            throw new AndroidRuntimeException("mService must be not null");
        }
    }

    public AccessibilityService getService() {
        return mService;
    }

    public void onAccessibilityEvent(AccessibilityEvent event) {
        Log.d(Log.TAG, "event : " + event);
    }

    public void start() {
    }

    public void stop() {
    }

    public void setClassName(CharSequence className) {
        mClassName = className;
    }
}
